#include <stdio.h>
#include <string.h>
#define LEN 20
char* s_get(char *st, int n);
void del_space(char str[], int size);
int main(int argc, char* argv[])
{
	char str[LEN];
	int size;
	while(s_get(str, LEN)){
		size = strlen(str);
		del_space(str, size);
		puts(str);		
	}
	
	return 0;
}
void del_space(char str[], int size)
{
	int i,j=0;
	char temp[LEN];
	for(i= 0; i< size; i++){
		while(j<size){
			if(str[j] != ' '){
				temp[i] = str[j];
				j++;
				break;	
			}
			else
				j++;
		}		
	}	
	temp[size] = '\0';
	for(i=0; i<size+1; i++)
		str[i] = temp[i];
}
char* s_get(char *st, int n) 
{
    char* find;
	char* ret_val = fgets(st, n, stdin);
    if (ret_val) {
		find = strchr(st, '\n');
        if (find)
            *find = '\0';
        else
            while (getchar() != '\n')
                continue;
    }
    return ret_val;
}
